<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  created() {
    // console.log('app'+new Date());
    this.changeBreadCrumbItem();
    this.changeLeftMenuCheckd();
  },
  methods:{
        changeBreadCrumbItem(){
            this.$store.commit('changeBCItem',this.$route.meta.title)
        },
        changeLeftMenuCheckd(){
            this.$store.commit('changeLMCheckd',this.$route.name)
        }
    },
  watch:{
      '$route'(to, from) {
          console.log(this.$route.name);
          
          this.changeBreadCrumbItem();
          this.changeLeftMenuCheckd();
      }
  }
}
</script>

<style>
/* html {
  height: 100%;
}
body {
  height: 100%;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
} */
</style>
